<?php
namespace app\common\model\mysql;

use think\Model;

class User extends Model
{
    protected $table = 'mall_admin_user';

    // 登录
    public function login($data)
    {
        return $this->where($data)->find();
    }

    // 更新用户表
    public function upda($id,$update)
    {
        return $this->where('id',$id)->save($update);
    }
}